/////precompiled////////
#include "precompiled.h"
////////////////////////


#include "prs_FrmImageStyle.h"
using namespace prs;

// TRuleFrmImageStyle /////////////////////////////////////////////////////////

//
TRuleFrmImageStyle::TRuleFrmImageStyle(
  snt::text::TContext &Context,
  svl::TVariant &VParentNode,
  TRuleFrmStyleState &RStyleState
) 
:vParentNode(VParentNode)
,rStyleState(RStyleState)
{
  snt::TReturn         Return;
  snt::TFVoid          F;
  snt::text::TSequence T(Context);
  snt::text::TKeyword K(Context);
  prs::TFuncNewNodeIntoAttrOldChildren FNewNode;

  this->Name(GetClassName()).Local(vParentNode)
  | K.New("image") 
    & FNewNode.New(VParentNode,TNodeFrmImageStyle()) 
    & F.New(this,&TRuleFrmImageStyle::FState)
    & rStyleState.New() 
    & Return.New()
  ;

  //svl::TMessageModal(GetClassName() << "\r\n" << GetGraphInfo(""));
}
